-- GENERATED SPELL FOR [Vilebranch Soothsayer] --


function spell0_4467(pUnit, Event) --@Healing Wave,Heal--
pUnit:FullCastSpellOnTarget(10395,pUnit)
pUnit:RegisterEvent('Sorts_4467', 3000, 1)
end

function spell1_4467(pUnit, Event) --@Lightning Bolt,n/a--
pUnit:FullCastSpellOnTarget(20824,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_4467', 3000, 1)
end

function Sorts_4467(pUnit, Event)
local choix_sorts_4467 = math.random(0, 1)
if choix_sorts_4467 == 0 then
pUnit:RegisterEvent('spell0_4467', 1, 1)
end
if choix_sorts_4467 == 1 then
pUnit:RegisterEvent('spell1_4467', 1, 1)
end
end

function mob4467_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_4467', math.random(1500, 3000), 1)
end

function mob4467_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4467_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4467_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(4467, 1, 'mob4467_Action')
RegisterUnitEvent(4467, 2, 'mob4467_Leave')
RegisterUnitEvent(4467, 3, 'mob4467_Kill')
RegisterUnitEvent(4467, 4, 'mob4467_Die')
